/*
 * @(#)PQTransformer.java
 * Date 2013-02-23
 * Version 1.0
 * Author Jim Horner
 * Copyright (c)2012
 */


package us.hornerscorners.lamppost.hl7v3common.transformer;

import javax.enterprise.context.ApplicationScoped;

import org.hl7.v3.PQ;

import us.hornerscorners.lamppost.transformer.AbstractTransformer;


/**
 *
 * @author jim
 */
@ApplicationScoped
public class PQTransformer extends AbstractTransformer<String, PQ> {

    /**
     * Constructs ...
     *
     */
    public PQTransformer() {
        super();
    }

    /**
     * Method description
     *
     *
     * @param value
     *
     * @return
     */
    @Override
    public PQ transform(String value) {

        return transform(value, null);
    }

    /**
     * Method description
     *
     *
     * @param value
     * @param units
     *
     * @return
     */
    public PQ transform(String value, String units) {

        PQ result = new PQ();

        result.setValue(value);
        result.setUnit(units);

        return result;
    }
}
